import { request } from "@/utils/request";

/** 新增年度-客户推荐 POST /api/recommendPar/addRecommendPar */
export async function addRecommendPar(data: Record<string, any>) {
  return request(`/api/recommendPar/addRecommendPar`, {
    method: "POST",
    data,
  });
}

/** 新增月度-客户推荐 POST /api/recommendMonthPar/addRecommendMonthPar */
export async function addRecommendMonthPar(data: Record<string, any>) {
  return request(`/api/recommendMonthPar/addRecommendMonthPar`, {
    method: "POST",
    data,
  });
}

/** 新增同行(自荐)推荐-客户推荐 POST /api/recommendSelfPar/addRecommendSelfPar */
export async function addRecommendSelfPar(data: Record<string, any>) {
  return request(`/api/memberVerifyLawyer/addLawyer`, {
    method: "POST",
    data,
  });
}

/** 获取已经发布的榜单列表 */
export async function getRankingListRelease() {
  return request(`/api/rankingListRelease/getRankingListRelease`, {
    method: "GET",
  });
}

/** 根据子榜单id获得榜单内容列表 */
export async function getRankingListItemsByReleaseId(releaseId) {
  return request(`/api/rankingListRelease/getRankingListItemsByReleaseId/${releaseId}`, {
    method: "GET"
  });
}

/** 根据条件查询榜单 GET /api/rankingList/queryRankingList */
export async function queryRankingList(params: Record<string, any>) {
  return request(`/api/rankingList/queryRankingList`, {
    method: "GET",
    params,
  });
}

/** 获取律师认证信息详细信息 GET /api/rankingList/getLawyerInfo/{id} */
export async function getLawyerInfo(id: number) {
  return request(`/api/rankingList/getLawyerInfo/${id}`, {
    method: "GET"
  });
}
/** 获取律师认评价信息 */
export async function getLawyerReview(params: Record<string, any>) {
  return request(`/api/rankingList/getLawyerReview`, {
    method: "GET",
    params
  });
}

/** 获取我的推荐-年度 */
export async function getRecommendParList(params: Record<string, any>) {
  return request(`/api/user/recommendPar/list`, {
    method: "GET",
    params
  });
}


/** 获取我的推荐-奖项申报 */
export async function getRecommendMonthParList(params: Record<string, any>) {
  return request(`/api/user/recommendMonthPar/list`, {
    method: "GET",
    params
  });
}

/** 获取我的推荐-个人申报 */
export async function getMemberVerifyLawyer(params: Record<string, any>) {
  return request(`/api/user/memberVerifyLawyer/list`, {
    method: "GET",
    params
  });
}
